package com.castle.fortress.admin.flowable.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.castle.fortress.admin.flowable.dto.FlowableAppAuthDto;
import com.castle.fortress.admin.flowable.dto.FlowableAppDto;
import com.castle.fortress.admin.flowable.entity.FlowableAppAuthEntity;

import java.util.List;

/**
 * 流程应用权限管理表 服务类
 *
 * @author castle
 * @since 2022-09-26
 */
public interface FlowableAppAuthService extends IService<FlowableAppAuthEntity> {

    /**
     * 分页展示流程应用权限管理表列表
     * @param page
     * @param flowableAppAuthDto
     * @return
     */
    IPage<FlowableAppAuthDto> pageFlowableAppAuth(Page<FlowableAppAuthDto> page, FlowableAppAuthDto flowableAppAuthDto);


    /**
     * 展示流程应用权限管理表列表
     * @param flowableAppAuthDto
     * @return
     */
    List<FlowableAppAuthDto> listFlowableAppAuth(FlowableAppAuthDto flowableAppAuthDto);

    /**
     * 异步保存应用的可见范围
     * @param flowableAppDto
     */
    void saveAuthAsync(FlowableAppDto flowableAppDto);

    /**
     * 删除指定应用的权限
     * @param appIds
     */
    void delByAppId(List<Long> appIds);
}
